import request from '@/utils/request'

export function listScenario(query) {
  return request({
    url: '/scene/sceneLog/list',
    method: 'get',
    params: query
  })
}

export function createScenario(data) {
  return request({
    url: '/scene/sceneLog/create',
    method: 'post',
    data
  })
}

export function readScenario(data) {
  return request({
    url: '/scene/sceneLog/read/' + data.id,
    method: 'get'
  })
}

export function updateScenario(data) {
  return request({
    url: '/scene/sceneLog/update',
    method: 'post',
    data
  })
}

// export function deleteScenario(data) {
//   return request({
//     url: '/scene/scenario/delete/' + data.fsceneno,
//     method: 'delete'
//   })
// }

export function deleteScenario(fsceneno, fscenetype) {
  return request({
    url: '/scene/sceneLog/delete',
    method: 'get',
    params: { fsceneno, fscenetype }
  })
}

export function areaOptions(query) {
  return request({
    url: '/scene/sceneLog/options',
    method: 'get',
    params: query
  })
}

export function eqtActions(query) {
  return request({
    url: '/scene/sceneLog/eqtActions/' + query,
    method: 'get'
  })
}
